package com.test.storage;

/**
 * @author: zouren
 * @date: 2022/3/14
 * @description:
 */
public interface SecretStorage {
    /**过期时间 long*/
    String KEY_PREVIOUSEXPIRATIONDATE = "previousExpirationDate";
    /**已经过期了  boolean  true 未过期*/
    String KEY_ALREADYEXPIRED = "alreadyExpired";

    /**上次校验时间 long*/
    String KEY_PREVIOUSSHUTDOWNDATE = "previousShutdownDate";
    /**接受许可证  boolean  true可用 ，上次校验时间结合使用校验*/
    String KEY_LICENSEACCEPTED = "licenseAccepted";

    String getProperty(String key);

    String getProperty(String key, String defaultValue);

    Object setProperty(String key, String value);

    void setSkipEncryption(boolean skipEncryption);

    boolean isSkipEncryption();

    void load();

    void save();
}
